#include "deepincommunity.h"

DeepinCommunity::DeepinCommunity()
{
    m_urls.insert("Linglong", "https://github.com/deepin-community/linglong/blob/release/1.6/README.zh_CN.md");
}

QString DeepinCommunity::name()
{
    return "Deepin 社区";
}

QString DeepinCommunity::prefix()
{
    return "";
}

QStringList DeepinCommunity::searching(const QString &text)
{
    QStringList list;
    list << m_urls.keys();
    return list;
}

QString DeepinCommunity::content(const QString &text)
{
    return m_urls.value(text);
}

bool DeepinCommunity::autoLoad()
{
    return true;
}

Wiki::ContentMode DeepinCommunity::contentMode()
{
    return Url;
}
